﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using PCMSofCC;

namespace PCMSofCC.BLL
{
    public static class Users
    {
        public static IQueryable<aspnet_Users> GetAllUsers()
        {
            PCMSofCCDataContext db=new PCMSofCCDataContext();
            var q =
                from u in db.aspnet_Users
                select u;
            return q;
        }

        public static string ResetPassword(string _userName)
        {
            return System.Web.Security.Membership.GetUser(_userName).ResetPassword();
        }

        public static void AssignTo(DateTime _date, Guid _userId, int _siteId, int _chartId)
        {
            Records.AddRecord(_date, _userId, _siteId, _chartId);
        }

        
    }
}
